package com.dongwei.looker;

/**
 * Created by user on 2017/9/12.
 * 观察者
 */
public class Guancha implements GuanchaIntF {

    private String readoming;

    private String subjectName;

    private String watherContent;

    public String getReadoming() {
        return readoming;
    }

    public void setReadoming(String readoming) {
        this.readoming = readoming;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getWatherContent() {
        return watherContent;
    }

    public void setWatherContent(String watherContent) {
        this.watherContent = watherContent;
    }

    @Override
    public void update(Zhuce zhuce) {
        watherContent=((Mubiao) zhuce).getWeatherContent();
        System.out.println(subjectName+"收到了信息"+watherContent+readoming);
    }
}
